<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <script src="./lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="./js/xadmin.js"></script>
        <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
    <script>
        $(function () {
            var myDate = new Date;
            var year = myDate.getFullYear(); //获取当前年
            var mon = myDate.getMonth() + 1; //获取当前月
            var date = myDate.getDate(); //获取当前日
            // var h = myDate.getHours();//获取当前小时数(0-23)
            // var m = myDate.getMinutes();//获取当前分钟数(0-59)
            // var s = myDate.getSeconds();//获取当前秒
            var week = myDate.getDay();
            var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
            console.log(year, mon, date, weeks[week])
            $("#time").html("！当前时间:"+year + "年" + p(mon) + "月" + p(date) + "日 " + weeks[week]);
        })
        function p(s) {
            return s < 10 ? '0' + s : s;
        }
    </script>
    <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <blockquote class="layui-elem-quote">欢迎你：
                                <span class="x-red">[[${session.user.loginId}]]</span><span id="time"></span>
                            </blockquote>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">数据统计</div>
                        <div class="layui-card-body ">
                            <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3>物资数</h3>
                                        <p>
                                            <cite id="Wz">66</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3>采购计划数</h3>
                                        <p>
                                            <cite id="Cg">12</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3>询价书数</h3>
                                        <p>
                                            <cite id="Xj">99</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3>合同申请数</h3>
                                        <p>
                                            <cite id="HtSq">67</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3>合同数</h3>
                                        <p>
                                            <cite id="Ht">67</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6 ">
                                    <a href="javascript:;" class="x-admin-backlog-body">
                                        <h3>供应商数</h3>
                                        <p>
                                            <cite id="Gys">6766</cite></p>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>

                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">系统信息</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>Spring版本</th>
                                        <td>4.0.0</td></tr>
                                    <tr>
                                        <th>服务器地址</th>
                                        <td>139.196.51.137</td></tr>
                                    <tr>
                                        <th>操作系统</th>
                                        <td>windows</td></tr>
                                    <tr>
                                        <th>运行环境</th>
                                        <td>JDK 9.0.4</td></tr>
                                    <tr>
                                        <th>IDEA版本</th>
                                        <td>IntelliJ IDEA 2020.1.1</td></tr>
                                    <tr>
                                        <th>运行方式</th>
                                        <td>SpringBoot</td></tr>
                                    <tr>
                                        <th>MYSQL版本</th>
                                        <td>Navicat (64 bit)</td></tr>
                                    <tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">开发团队</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>版权所有</th>
                                        <td>全部开发者</td>
                                    </tr>
                                    <tr>
                                        <th>开发者</th>
                                        <td>曾凯峰，黄承志，罗许凯，刘昌正</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <style id="welcome_style"></style>
                <div class="layui-col-md12">
                    <blockquote class="layui-elem-quote layui-quote-nm">本系统由x-admin提供技术支持。</blockquote></div>
            </div>
        </div>
        </div>
    </body>
<script>
    $.ajax({
        url: "/Index/Wz",
        type: "POST",
        success: function (result) {
            $("#Wz").html(result);
        }
    });
    $.ajax({
        url: "/Index/Cg",
        type: "POST",
        success: function (result) {
            $("#Cg").html(result);
        }
    });
    $.ajax({
        url: "/Index/Xj",
        type: "POST",
        success: function (result) {
            $("#Xj").html(result);
        }
    });
    $.ajax({
        url: "/Index/HtSq",
        type: "POST",
        success: function (result) {
            $("#HtSq").html(result);
        }
    });
    $.ajax({
        url: "/Index/Ht",
        type: "POST",
        success: function (result) {
            $("#Ht").html(result);
        }
    });
    $.ajax({
        url: "/Index/Gys",
        type: "POST",
        success: function (result) {
            $("#Gys").html(result);
        }
    });
</script>
</html>